log-dirty: refine common code to support PML
authorKai Huang <kai.huang@linux.intel.com>
Mon, 4 May 2015 10:18:51 +0000 (12:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 May 2015 10:18:51 +0000 (12:18 +0200)
commit3a7a0ae0cc3960e418a7a075a3767c647799f9ba
treebe97ee2ad79bc1cceaa973fb7518fe9720100fd5
parente18d4274772e52ac81fda1acb246d11ef666e5fe
log-dirty: refine common code to support PML

Using PML, it's possible there are dirty GPAs logged in vcpus' PML buffers
when userspace peek/clear dirty pages, therefore we need to flush them befor
reporting dirty pages to userspace. This applies to both video ram tracking and
paging_log_dirty_op.

This patch adds new p2m layer functions to enable/disable PML and flush PML
buffers. The new functions are named to be generic to cover potential futher
PML-like features for other platforms.

Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/paging.c
xen/include/asm-x86/p2m.h